package kr.co.m2soft.intern;

import java.io.IOException;

import com.itextpdf.text.DocumentException;
import com.itextpdf.text.pdf.KoreanCompletionGenerator;
import com.itextpdf.text.pdf.SubsetFont;

/**
 * Test Hangeul Completion subset font
 * @author dogfooter
 *
 */
public class HangeulCompletionTest {

	public static void main(String[] args) throws DocumentException, IOException {

		String resultPath = "";
		String sourcePath = "fonts/jap/otf/ftmaru400b.otf";

		if (SubsetFont.isKorean(sourcePath)) {
			resultPath = KoreanCompletionGenerator.GEN(sourcePath, "result/GOOOD.otf");
			System.out.println("yes!");
		} else {
			System.out.println("not korean");
		}

	}
}
